package com.xinongbest.oa.dao;

import com.xinongbest.oa.entity.Node;
import com.xinongbest.oa.utils.MybatisUtils;

import java.util.List;

/**
 * @author lemonwan
 */
public class RbacDao {
    public List<Node> selectNodeByUserId(Long userId) {
        List<Node> nodeList = (List) MybatisUtils.executeQuery(sqlSession -> sqlSession.selectList("rbacmapper.selectNodeByUserId", userId));
        return nodeList;
    }
}
